package com.nanjing.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;


/**
 * @author wubeibei
 * @date 2020/5/29
 */
@Controller
public class TestController {

    @GetMapping("/test/t")
    @ResponseBody
    public String test() {
        return "test";
    }

    @GetMapping("/article/{id}")
    @ResponseBody
    public String load(@PathVariable Long id) {
        return "This is my first blog";
    }
}
